<%= error_messages_for :device %>
<p>
    <b>Name</b><br />
    <%= f.text_field :name %>
  </p>

  <p>
    <b>Fd</b><br />
    <%= f.text_field :fd %>
  </p>

  <p>
    <b>Description</b><br />
    <%= f.text_area :desc %>
  </p>
    <p>
    <b>Time factor</b><br />
    <%= f.text_field :timefactor %>
  </p>

  <p>
    <b>Time scale</b><br />
    <%= f.text_field :timescale %>
  </p>

  <p>
    <b>Malfunction Rating</b><br />
    <%= f.text_field :mr %>
  </p>

  <p>
    <b>Size</b><br />
    <%=f.select :size_id, Size.find(:all).collect{|c| [c.name,c.id]}%>
  </p>
<div id="device_features">
	Features:</br>
  <%= render :partial => 'device_feature', :collection => @device.device_features %>
</div>
<p><%= add_device_feature_link "Add a feature" %></p>
